﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using models = RestApp.UI.Models;

namespace RestApp.UI.Models
{
    public class EditableUser : models.User
    {
        [Required]
        [Display(Name = "Пароль")]
        public override string Password { get; set; }

        [Display(Name = "Уволен")]
        public bool IsFired { get; set; }

        [Display(Name = "Дата увольнения")]
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd.MM.yyyy}")]
        public DateTime? FireDate { get; set; }

        [DataType(DataType.MultilineText)]
        [Display(Name = "Коментарий при увольнении")]
        public string FireComment { get; set; }

    }
}